how to get all panels in form in c#

118

how to get all panels in form in c# -

foreach (Control c in this.Controls) {
    if (c is Panel) {
        //DO
    }
}

Comments

Submit
0 Comments